import { Transform } from 'class-transformer'
import { IsNumber, IsString } from 'class-validator'

export class RankDTO {
  @IsString()
  nickname: string

  @IsNumber()
  @Transform(val => Number(val.value))
  score: number
}
